export const menuTypeList = [
  { value: 0, label: '目录' },
  { value: 1, label: '菜单' },
  { value: 2, label: '按钮' }
]

export const menuTypeMap = listToMap(menuTypeList)
// console.log(constantMap, 'constantMap')

function listToMap(list) {
  const map = {}
  for (const item of list) {
    map[item.value] = item.label
  }
  return map
}
